package models;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="sys_user_role")
public class UserRole extends IdEntity{
	
	@ManyToOne
	private Role role;
	
	@ManyToOne
	private User user;
	
	
	private Integer position;
	
	public Integer getPosition() {
		return position;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public void setPosition(Integer position) {
		this.position = position;
	}
	
}
